//封装ls存取token

const key='pc-key'

const setToken = (token)=>{
    return  window.localStorage.setItem(key,token)
    //存

}

const getToken = () => {
    return window.localStorage.getItem(key)
    //取
}

const removeToken=()=>{
   return window.localStorage.removeItem(key)
    //删
}
export { getToken, setToken, removeToken }